﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012D3 RID: 4819
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncChessRogueNousValueScNotify : IMessage<SyncChessRogueNousValueScNotify>, IMessage, IEquatable<SyncChessRogueNousValueScNotify>, IDeepCloneable<SyncChessRogueNousValueScNotify>, IBufferMessage
	{
		// Token: 0x17003CEA RID: 15594
		// (get) Token: 0x0600D7E7 RID: 55271 RVA: 0x00243417 File Offset: 0x00241617
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncChessRogueNousValueScNotify> Parser
		{
			get
			{
				return SyncChessRogueNousValueScNotify._parser;
			}
		}

		// Token: 0x17003CEB RID: 15595
		// (get) Token: 0x0600D7E8 RID: 55272 RVA: 0x0024341E File Offset: 0x0024161E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncChessRogueNousValueScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CEC RID: 15596
		// (get) Token: 0x0600D7E9 RID: 55273 RVA: 0x00243430 File Offset: 0x00241630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncChessRogueNousValueScNotify.Descriptor;
			}
		}

		// Token: 0x0600D7EA RID: 55274 RVA: 0x00243437 File Offset: 0x00241637
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousValueScNotify()
		{
		}

		// Token: 0x0600D7EB RID: 55275 RVA: 0x0024343F File Offset: 0x0024163F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousValueScNotify(SyncChessRogueNousValueScNotify other) : this()
		{
			this.nousValueInfo_ = ((other.nousValueInfo_ != null) ? other.nousValueInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D7EC RID: 55276 RVA: 0x00243474 File Offset: 0x00241674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousValueScNotify Clone()
		{
			return new SyncChessRogueNousValueScNotify(this);
		}

		// Token: 0x17003CED RID: 15597
		// (get) Token: 0x0600D7ED RID: 55277 RVA: 0x0024347C File Offset: 0x0024167C
		// (set) Token: 0x0600D7EE RID: 55278 RVA: 0x00243484 File Offset: 0x00241684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueNousValueInfo NousValueInfo
		{
			get
			{
				return this.nousValueInfo_;
			}
			set
			{
				this.nousValueInfo_ = value;
			}
		}

		// Token: 0x0600D7EF RID: 55279 RVA: 0x0024348D File Offset: 0x0024168D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncChessRogueNousValueScNotify);
		}

		// Token: 0x0600D7F0 RID: 55280 RVA: 0x0024349B File Offset: 0x0024169B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncChessRogueNousValueScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.NousValueInfo, other.NousValueInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D7F1 RID: 55281 RVA: 0x002434D0 File Offset: 0x002416D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.nousValueInfo_ != null)
			{
				num ^= this.NousValueInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D7F2 RID: 55282 RVA: 0x0024350C File Offset: 0x0024170C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D7F3 RID: 55283 RVA: 0x00243514 File Offset: 0x00241714
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D7F4 RID: 55284 RVA: 0x0024351D File Offset: 0x0024171D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.nousValueInfo_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.NousValueInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D7F5 RID: 55285 RVA: 0x00243550 File Offset: 0x00241750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.nousValueInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.NousValueInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D7F6 RID: 55286 RVA: 0x00243590 File Offset: 0x00241790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncChessRogueNousValueScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.nousValueInfo_ != null)
			{
				if (this.nousValueInfo_ == null)
				{
					this.NousValueInfo = new ChessRogueNousValueInfo();
				}
				this.NousValueInfo.MergeFrom(other.NousValueInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D7F7 RID: 55287 RVA: 0x002435E4 File Offset: 0x002417E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D7F8 RID: 55288 RVA: 0x002435F0 File Offset: 0x002417F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.nousValueInfo_ == null)
					{
						this.NousValueInfo = new ChessRogueNousValueInfo();
					}
					input.ReadMessage(this.NousValueInfo);
				}
			}
		}

		// Token: 0x04005606 RID: 22022
		private static readonly MessageParser<SyncChessRogueNousValueScNotify> _parser = new MessageParser<SyncChessRogueNousValueScNotify>(() => new SyncChessRogueNousValueScNotify());

		// Token: 0x04005607 RID: 22023
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005608 RID: 22024
		public const int NousValueInfoFieldNumber = 5;

		// Token: 0x04005609 RID: 22025
		private ChessRogueNousValueInfo nousValueInfo_;
	}
}
